hysop.backend.device.opencl.opencl_kernel_autotuner module¶
- class hysop.backend.device.opencl.opencl_kernel_autotuner.OpenClKernelAutotuner(name, tunable_kernel, **kwds)[source]¶
Bases:
KernelAutotuner
Initialize a KernelAutotuner.
- Parameters:
name (str) – Name of this Autotuner for logging and caching purposes.
tunable_kernel (TunableKernel) – The kernel to be tuned.
- bench_one_from_binary(kernel, target_nruns, global_work_size, local_work_size, old_stats, best_stats)[source]¶
Compile and bench one kernel by executing it nruns times. Return the compiled kernel, KernelStatistics and whether it was pruned or not.